
<@mits.headerDiv />

   <script type='text/javascript' src='${base}/dwr/interface/trackLogMgr.js'></script>
  <script type='text/javascript' src='${base}/dwr/engine.js'></script>
  <script type='text/javascript' src='${base}/dwr/util.js'></script>
<script>

var iFrameTimeHandler;
function iframeRefrash(){
 trackLogMgr.getLatestTrackLogId('${passPortName?if_exists}','${direction?if_exists}',true, fillDirection);
  iFrameTimeHandler=setTimeout("location.reload()",4000);
}


function iframeStopRefrash(){
   
	if(iFrameTimeHandler !=undefined){ 
	   
		clearTimeout(iFrameTimeHandler);
		iFrameTimeHandler=undefined;
	}

}

function fillDirection(data){	
 if(data != null) 
 {
  
  	if(data == parent.document.getElementById("tracklogId").value) {
  		parent.stopRefrash();
 	}else {
 	 parent.initRefrash();
 	}
 }
}
window.onload = iframeRefrash;
</script>
